using UnityEngine;
using UnityEngine.EventSystems;

public class ClickBtn : MonoBehaviour,IPointerEnterHandler
{
    [SerializeField] AudioSource source;

    public void OnPointerEnter(PointerEventData eventData)
    {
        if (source.clip == null) return;
        source.PlayOneShot(source.clip);
    }
}
